import { _decorator, Component, Node } from 'cc';
import { Game } from './Game/Game';
import { ResMgr } from './Managers/ResMgr';
const { ccclass, property } = _decorator;

//代码入口
@ccclass('GameLanch')
export class GameLanch extends Component {
    _width = 0
    _height = 0
    _options = {
        cellWidth: 10,
        cellHeight: 10,
        roomWidth: [2, 10],
        roomHeight: [2, 7]
    }
    rooms = []
    map = null
    connectedCells = []
    protected onLoad(): void {
        //初始化框架的各个模块，资源管理，UI管理，网络管理，日志管理，声音管理
        //初始化游戏逻辑代码
        // this.node.addComponent(ResMgr);
        // this.node.addComponent(Game);
    }

    start() {
        //检查资源更新
        //进入游戏代码的入口逻辑
        // Game.instance.GameStart();
    }

    update(deltaTime: number) {
        
    }
}


